package com.bootdo.xiao.qcloudsms;

import com.bootdo.xiao.util.SmsConstants;
import com.github.qcloudsms.SmsMultiSender;
import com.github.qcloudsms.SmsMultiSenderResult;
import com.github.qcloudsms.httpclient.HTTPException;

import java.io.IOException;


/**
 * @Auther: liuj
 * @Date: 2019/5/24 17:09
 * @Description:
 */
public class MassSendSMS {
    public static void main(String[] args){
        SmsMultiSender msender = new SmsMultiSender(SmsConstants.appid, SmsConstants.appkey);
        SmsMultiSenderResult result = null;
        try {
            result = msender.send(0, "86", SmsConstants.phoneNumbers,
                    "【腾讯云】您的验证码是: 5678", "", "");
        } catch (HTTPException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
